package com.cucker.urlforwarder.entity;

/**
 * 对应 record 表
 * 域名 Resource Record
 */
public class Record {
    private long id;
    // zone name
    private String zoneName;
    private String host;
    private String type;
    private String data;
    private int basic;
    private String resolutionLine;
    private String status;

    public Record() {
    }

    public Record(long id, String zoneName, String host, String type, String data, int basic, String resolutionLine, String status) {
        this.id = id;
        this.zoneName = zoneName;
        this.host = host;
        this.type = type;
        this.data = data;
        this.basic = basic;
        this.resolutionLine = resolutionLine;
        this.status = status;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getZoneName() {
        return zoneName;
    }

    public void setZoneName(String zoneName) {
        this.zoneName = zoneName;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public int getBasic() {
        return basic;
    }

    public void setBasic(int basic) {
        this.basic = basic;
    }

    public String getResolutionLine() {
        return resolutionLine;
    }

    public void setResolutionLine(String resolutionLine) {
        this.resolutionLine = resolutionLine;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Record{" +
                "id=" + id +
                ", zoneName='" + zoneName + '\'' +
                ", host='" + host + '\'' +
                ", type='" + type + '\'' +
                ", data='" + data + '\'' +
                ", basic=" + basic +
                ", resolutionLine='" + resolutionLine + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
